<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/9/19
 * Time: 10:43
 */

namespace common\models\db;


/**
 * Class DocuTag
 * @package common\models\db
 *
 * @property Tag $tag
 * @property Docu $docu
 */
class DocuTag extends \common\models\db\tables\DocuTag
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getTag()
    {
        return $this->hasOne(Tag::className(), ['id' => 'tag_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getDocu()
    {
        return $this->hasOne(Docu::className(), ['id' => 'docu_id']);
    }
}